home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / m68kcoff.sc < prev    next >
Encoding:
Text File  |  1994-09-07  |  1.5 KB  |  60 lines

  1. # This is totally made up, from the a29k stuff.  If you know better,
  2. # tell us about it.
  3. cat <<EOF
  4. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  5. ${LIB_SEARCH_DIRS}
  6.  
  7. MEMORY {
  8.     text       : ORIGIN = 0x1000000, LENGTH = 0x1000000
  9.     talias     : ORIGIN = 0x2000000, LENGTH = 0x1000000
  10.     data    : ORIGIN = 0x3000000, LENGTH = 0x1000000
  11.     mstack     : ORIGIN = 0x4000000, LENGTH = 0x1000000
  12.     rstack     : ORIGIN = 0x5000000, LENGTH = 0x1000000
  13. }
  14. SECTIONS
  15. {
  16.   .text : {
  17.     *(.text)
  18.     ${RELOCATING+ etext  =  .;}
  19.     ${CONSTRUCTING+ __CTOR_LIST__ = .;}
  20.     ${CONSTRUCTING+ LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)}
  21.     *(.ctors)
  22.     ${CONSTRUCTING+ LONG(0)}
  23.     ${CONSTRUCTING+ __CTOR_END__ = .;}
  24.     ${CONSTRUCTING+ __DTOR_LIST__ = .;}
  25.     ${CONSTRUCTING+ LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2)}
  26.     *(.dtors)
  27.     ${CONSTRUCTING+ LONG(0)}
  28.     ${CONSTRUCTING+ __DTOR_END__ = .;}
  29.     *(.lit)
  30.     *(.shdata)
  31.   } ${RELOCATING+ > text}
  32.   .shbss SIZEOF(.text) + ADDR(.text) :    {
  33.     *(.shbss)
  34.   } 
  35.   .talias :     { } ${RELOCATING+ > talias}
  36.   .data  : {
  37.     *(.data)
  38.     ${RELOCATING+ edata  =  .};
  39.   } ${RELOCATING+ > data}
  40.   .bss   SIZEOF(.data) + ADDR(.data) :
  41.   {                     
  42.     ${RELOCATING+ __bss_start = .};
  43.    *(.bss)
  44.    *(COMMON)
  45.      ${RELOCATING+ end = ALIGN(0x8)};
  46.      ${RELOCATING+ _end = ALIGN(0x8)};
  47.   } ${RELOCATING+ > data}
  48.   .mstack  : { } ${RELOCATING+ > mstack}
  49.   .rstack  : { } ${RELOCATING+ > rstack}
  50.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  51.   {
  52.     [ .stab ]
  53.   }
  54.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  55.   {
  56.     [ .stabstr ]
  57.   }
  58. }
  59. EOF
  60.